﻿#include "GroupSpeedWidget.h"
#include "ui_GroupSpeedWidget.h"
#include <QStackedLayout>

GroupSpeedWidget::GroupSpeedWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::GroupSpeedWidget)
{
    ui->setupUi(this);

    QStackedLayout *stackedLayout = new QStackedLayout;
    stackedLayout->addWidget(ui->widget_line);
    stackedLayout->addWidget(ui->scrollArea);
    stackedLayout->setContentsMargins(0, 0, 0, 0);
    stackedLayout->setStackingMode(QStackedLayout::StackAll);

    setLayout(stackedLayout);
}

GroupSpeedWidget::~GroupSpeedWidget()
{
    delete ui;
}

ScrollSpeedWidget *GroupSpeedWidget::getScrollSpeedWidget()
{
    return ui->scrollSpeedWidget;
}
